//
//  BKHistoryHeaderView.m
//  baokaodaxue
//
//  Created by dangyangyang on 15/6/1.
//  Copyright (c) 2015年 宏图教育. All rights reserved.
//

#import "BKHistoryHeaderView.h"

@implementation BKHistoryHeaderView


// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
    CGContextRef context = UIGraphicsGetCurrentContext();
    
    CGContextSetLineWidth(context, .5);
    
    CGContextSetRGBStrokeColor(context, .714, .922, .965, 1);
    
    
    CGFloat height = rect.size.height;
    CGContextMoveToPoint(context, 57, 0);
    CGContextAddLineToPoint(context, 57, height);
    CGContextStrokePath(context);
    
    CGFloat itemWidth = ( rect.size.width - 57 ) / 3;
    CGContextMoveToPoint(context, 57 + itemWidth, 0);
    CGContextAddLineToPoint(context, 57 + itemWidth, height);
    CGContextStrokePath(context);
    
    CGContextMoveToPoint(context, 57 + itemWidth * 2, 0);
    CGContextAddLineToPoint(context, 57 + itemWidth * 2, height);
    CGContextStrokePath(context);
}



@end
